import java.util.Random;
import java.util.TreeSet;

public class NUmberEight {
    public static void main(String[] args) {
        Random random=new Random();
        TreeSet<Integer> treeSet=new TreeSet<>();
        while (true){
            treeSet.add(random.nextInt(51));
            if (treeSet.size()==10){
                break;
            }
        }
        treeSet.forEach(System.out::println);
        System.out.println("__________________----");
        TreeSet<Integer> treeSet1=new TreeSet<>();
        while (true){
            treeSet1.add(random.nextInt(51)+50);
            if (treeSet1.size()==10){
                break;
            }
        }
        treeSet1.forEach(System.out::println);
    }
}
